package com.medata.service.impl;

import com.medata.dataObject.Databaselist;
import com.medata.repository.DatabaselistRepository;
import com.medata.service.DatabaselistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：zb
 * @date ：Created in 2019/5/29 0029 16:47
 * @description：
 */
@Service
public class DatabaselistServiceImpl implements DatabaselistService {
    @Autowired
    private DatabaselistRepository databaselistRepository;

    @Override
    public Databaselist findByDbname(String dbname) {
        Databaselist databaselist = databaselistRepository.findByDbname(dbname);
        return databaselist;
    }

    @Override
    public List<Databaselist> findAll() {
        List<Databaselist> all = databaselistRepository.findAll();
        return all;
    }
}
